package io.gitee.vexlife.snake;

public class GameActivityPerformer implements Runnable {
	private GameController gmctrl;

	public GameActivityPerformer(GameController gmctrl) {
		this.gmctrl = gmctrl;
	}

	@Override
	public void run() {
		gmctrl.getSnake().move(gmctrl);
		gmctrl.getMainFrame().repaint();
		gmctrl.setActivatedFlag(true);
		new Thread(new GameAgentInvoker(this.gmctrl.getSelectedAgent())).start();
	}

}
